<?php
/* Checks if attacks are remaining.  Returns:
 * 3 = midfield attacks not yet resolved
 * 2 = base attacks not yet resolved
 * 1 = all attacks resolved
 */
function CheckAttacksRemaining ( $Attacks )
{
  $status;
  
  return $status;
}

/* Scans, Returns ID of next attack */
function CheckNextAttack( $Attacks )
{
  $ID;
  
  return $ID;
}

/* Returns -1 if no return attack, else returns ID of return attack */
function CheckReturnAttack( $target )
{
  $ID;
  
  return -1;
  return $ID;
}

/* checks if there are other attackers.  
 * if not, change "executed" to 2, return 0
 * if yes, return 1
 */
function CheckOtherAtker( $Attacks, $attacker, $target )
{

}

/* NOTES
foreach($attacks as $id => $info)
{
  if($info[0] == x)
  {
    $anotherarray[] = $id;
  }
}

*/
?>